package com.meituan.sdk.model.pms.reservation.generateAddtionnalRoomRent;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 生成加收房费
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/reservation/generateAdditionalRoomRent",
    businessId = 57,
    apiVersion = "10026",
    apiName = "generate_addtionnal_room_rent",
    needAuth = true
)
public class GenerateAddtionnalRoomRentRequest implements MeituanRequest<GenerateAddtionnalRoomRentResponse> {
    /**
    * <p data-diff-id="ct-diff-id-4a95ce94-eb54-4eb3-bb8a-1c80abd6e832">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-2645d237-54fd-4258-b097-be2a89f86741">占房ID列表</p>
    */
    @NotEmpty(message = "occupationIds不能为空")
    @SerializedName("occupationIds")
    private List<Long> occupationIds;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public List<Long> getOccupationIds() {
        return occupationIds;
    }
    public void setOccupationIds(List<Long> occupationIds) {
        this.occupationIds = occupationIds;
    }


    @Override
    public MeituanResponse<GenerateAddtionnalRoomRentResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<GenerateAddtionnalRoomRentResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "GenerateAddtionnalRoomRentRequest{" + "hotelId=" + hotelId + "," + "occupationIds=" + occupationIds + "}";
    }
}
